package com.zx.service.impl;

import com.zx.DAO.IndexDao;
import com.zx.service.IndexInte;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 程仟磊
 * @date 2021/7/27
 */
@Service
public class IndexImpl implements IndexInte {
    @Resource
    private IndexDao indexDao;

    @Override
    public List loadFMenu(Integer uid) {
        return indexDao.loadFMenu(uid);
    }

    @Override
    public List loadTMenu(Integer uid,String mparent) {
        return indexDao.loadTMenu(uid, Integer.parseInt(mparent));
    }
}
